pg_ctl -D /opt/installpg/pgdata -l logfile stop
pg_ctl -D /opt/installpg/pgdata -l logfile start